package com.lagou.dao;

import com.lagou.pojo.User;
import org.dom4j.DocumentException;

import java.beans.PropertyVetoException;
import java.util.List;

public interface IUserDao {
     // 查询所有用户
    public List<User> queryAll() throws Exception;

    // 根据条件进行用户查询
   public User queryByCondition(User user) throws Exception;

    /**
     *  新增用户 1- 成功，0 -代表失败
     */
   public Integer addUser(User user) throws Exception;
    /**
     * 修改用户，1- 成功，0 -代表失败
      */
   public Integer updateUser(User user) throws Exception;

    /**
     *  删除用户
     * @param user
     * @return
     */
   public Integer deleteUser(User user) throws Exception;
}
